---对决
---@class BuffEffect52 : BaseBuffEffect
BuffEffect52 = ClientFight.CreateClass("BuffEffect52", ClientFight.BaseBuffEffect)
local t = BuffEffect52
---@param fight Fight
---@param buff FighterBuff
function t:action(fight, buff, ...)
    local parameters = {...};
    t:removeSourceBuff(fight, buff);
    return ClientFight.BaseBuffEffect.action(self,fight, buff, parameters);
end
function t:remove(fight, buff, force, ...)
    local parameters = {...};
    self:removeSourceBuff(fight, buff);
    return ClientFight.BaseBuffEffect.remove(self,fight, buff, force, parameters);
end

function t:removeSourceBuff(fight, buff)
    local target = buff.target;
    local duelTarget = target.duelTarget;
    if (duelTarget ~= nil) then
        local removeBuffId = buff.buffBean.f_BuffEffectValue[1];
        local removeBuff = BuffManager.getBuffByModel(duelTarget, removeBuffId);
        if (removeBuff ~= nil) then
            removeBuff.continuedTime = 1;
        end
    end
end

t.New()